function PagerUtils(options){
    this.options = {
        "container":"page",
        "group":5,
        "skin":"#dedede",
        "url":"xxxx",
        "param":{"pageNum":1},
        "getMoreDataCallBack":function(resp){
            console.log("getMoreDataCallBack....")
        },
        "initDataCallBack":function (resp) {
            console.log("initDataCallBack....")
        }
    };
    this.options = Object.assign(this.options, options);//将设定参数和默认参数进行合并操作;

    var self = this;

    PagerUtils.prototype.jump=function (pageNum) {
        var param = self.options.param;
        param.pageNum = pageNum
        var config={
            "url":self.options.url,
            "method":"POST",
            "data":param,
            "successCallBack":function(resp){
                self.options.getMoreDataCallBack(resp)
            }
        }
        var ajax = new AjaxUtils(config)
        ajax.executeRequest();
    }

    PagerUtils.prototype.init = function(){
        var param = self.options.param;
        param.pageNum = 1;


        var config={
            "url":self.options.url,
            "method":"POST",
            "data":param,
            "successCallBack":function(resp){
                laypage({
                    cont: self.options.container, //容器。值支持id名、原生dom对象，jquery对象,
                    pages: resp.data.totalPage, //总页数
                    skip: false, //是否开启跳页
                    skin: self.options.skin,
                    groups: self.options.group, //连续显示分页数
                    jump: function(obj){
                        if(obj.curr>1){
                            self.jump(obj.curr)
                        }else{
                            self.options.initDataCallBack(resp)
                        }
                    }
                });
            }
        }
        var ajax = new AjaxUtils(config)
        ajax.executeRequest();
    }
}